using MediatR;
using RBAC.ErrorCode;

namespace RBAC.Write.Api.Application.Command.ERP.PurchasingManagement.RawMaterialSuppliers
{
    /// <summary>
    /// 导入供应商信息命令
    /// </summary>
    public class ImportRawMaterialSuppliersCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 上传文件名（用于判断扩展名）
        /// </summary>
        public string FileName { get; set; } = string.Empty;

        /// <summary>
        /// 文件字节内容
        /// </summary>
        public byte[] FileBytes { get; set; } = [];

        /// <summary>
        /// 首行是否为表头
        /// </summary>
        public bool HasHeader { get; set; } = true;
    }
}
